package com.gzgs;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

//以下三个注解可以使用@SpringCloudApplication来代替
@SpringBootApplication
@EnableDiscoveryClient//开启eureka客户端功能
@EnableCircuitBreaker //开启熔断机制
@EnableFeignClients//开启fegin客户端功能

public class GzsgServiceConsumerApplication {


   /* @Bean
    @LoadBalanced //开启负载均衡
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }*/
    public static void main(String[] args) {
        SpringApplication.run(GzsgServiceConsumerApplication.class, args);
    }

}
